// 首页数据
export const useIndexArticle = (params?: any) => useHttpGet('getIndexArticle', `web/home/article/${params.type}`, { lazy: true, params })
// 关于我们
export const useAbout = (params?: any) => useHttpGet('getAbout', `web/about`, { lazy: true, params })
// 分类
export const useCategory = (params?: any) => useHttpGet('getCategory', `web/article/category`, { lazy: true, params })
// 分类
export const useArticleDetail = (params?: any) => useHttpGet('getArticle', `web/article/${params.id}`, { lazy: true, params })
// 验证码
export const useCaptcha = (params?: any) => useHttpGet('getCaptcha', `web/common/captcha`, { lazy: true, params })
// 新增留言
export const usePostMessage = (body?: any) => useHttpPost('FetchArticle', 'web/message', { body })
// 联系我们
export const useContact = (params?: any) => useHttpGet('getContact', `web/contact/${params.id}`, { lazy: true, params })
